<?php

class Slide_show_model extends MY_Model {

    public function __construct() {
	parent::__construct();
	$this->table = 'alsa_slide_show';

	$this->as = 'ss';

	$this->relations = array(
	    array(
		'table' => 'alsa_node',
		'as' => 'n',
		'foreign' => 'id',
		'local' => 'image',
		'type' => 'left'
	    )
	);

	$this->columns = array(
	    '*',
	    array('n.name', 'image_name')
	);
    }

}
